// 设置输入框placeholder的颜色
@mixin placeholder($color) {
  :-moz-placeholder {
    color: $color;
  }

  ::-moz-placeholder {
    color: $color;
  }

  input:-ms-input-placeholder {
    color: $color;
  }

  input::-webkit-input-placeholder {
    color: $color;
  }
}

// 滚动条自定义样式
@mixin scrollbar($color, $width: 8px, $background: #999) {
  ::-webkit-scrollbar {
    width: $width;
    height: $width;
    background-color: $background;
  }

  /*定义滚动条轨道 内阴影+圆角*/
  /* ::-webkit-scrollbar-track
   {
       -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
       border-radius: 10px;
       background-color: #F5F5F5;
   }*/

  /*定义滑块 内阴影+圆角*/
  ::-webkit-scrollbar-thumb {
    border-radius: 2px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: $color;
  }
}

// antdSelect下拉样式
@mixin dayuSelect($gray, $sideBgColor, $blueLight, $dropBgColor) {
    .ant-select-dropdown-menu-item {
        color: $gray;
        background-color: $sideBgColor;

        &:hover:not(.ant-select-dropdown-menu-item-disabled) {
            color: $blueLight;
            background-color: $sideBgColor;
        }

        &.ant-select-dropdown-menu-item-active:not(.ant-select-dropdown-menu-item-disabled) {
            background-color: $dropBgColor;
        }

    }
}

